package org.platform.executor.TimingDiagnose;

import com.mc.mic.core.bus.provider.IMicProviderServiceExecutor;
import org.platform.mo.csmo.cmd41014.QueryTimingTaskRequestParam;
import org.platform.mo.csmo.cmd41014.QueryTimingTaskResponseParam;
import org.platform.service.diagnose.TimingDiagnoseTaskServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author FengJie
 * @date 2018/8/18
 */
@Service
public class QueryTimingTaskExecutor implements IMicProviderServiceExecutor<QueryTimingTaskRequestParam, QueryTimingTaskResponseParam> {
    @Autowired
    TimingDiagnoseTaskServiceImpl service;

    @Override
    public QueryTimingTaskResponseParam doExecute(QueryTimingTaskRequestParam requestParam) {
        return service.queryTimingTask(requestParam);
    }
}
